﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(CinerariumMetadata))]//使用CinerariumMetadata对Cinerarium进行数据验证
    public partial class Cinerarium : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }

    public class CinerariumMetadata
    {
        [ScaffoldColumn(false)]
        [Display(Name = "RowGuid", Order = 1)]
        public object RowGuid { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "创建时间", Order = 2)]
        [DataType(System.ComponentModel.DataAnnotations.DataType.DateTime, ErrorMessage = "时间格式不正确")]
        public DateTime? CreateTime { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "创建人", Order = 3)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object CreatePerson { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "价格", Order = 4)]
        public object Price { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "排号", Order = 5)]
        [Range(0, 2147483646, ErrorMessage = "数值超出范围")]
        public int? Pai { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "号", Order = 6)]
        [Range(0, 2147483646, ErrorMessage = "数值超出范围")]
        public int? Hao { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "AreaGuid", Order = 7)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object AreaGuid { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "寄存区域名称", Order = 8)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object AreaName { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "排名称", Order = 9)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object PaiName { get; set; }


    }


}

